var app = angular.module('app');
app.factory('toasterService', ['toaster', function (toaster) {

    var toasterService = {};

    toasterService.pop = function (type, title, text) {
        type = type || 'info';
        // title = $sce.trustAsHtml(title) || $sce.trustAsHtml('提示');
        // text = $sce.trustAsHtml(text) || $sce.trustAsHtml('提示内容');
        title = title || '提示';
        text = text || '提示内容';
        toaster.pop(type, title, text);
    };

    return toasterService;
}]);